package com.iterator;

import com.sun.java.swing.plaf.windows.WindowsDesktopIconUI;
import com.template.Coffee;

import java.util.ArrayList;

public class Main {
    public static void main(String[] args) {
//        Collection_ arrayList_ = new ArrayList_();
        Collection_ linkedList_ = new LinkedList_();
        for(int i = 0; i < 15; i ++){
            linkedList_.add(new MyObject(i));
        }
        Iterator_ iterator_ = linkedList_.iterator();
        while (iterator_.hasNext()){
            System.out.println(iterator_.next());
        }
    }
}

